import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";

@Index("PK__sys_role__3213E83F07584726", ["id"], { unique: true })
@Entity("sys_role_menu", { schema: "dbo" })
export class SysRoleMenu {
  @Column("bigint", { name: "role_id" })
  roleId: string;

  @Column("bigint", { name: "menu_id" })
  menuId: string;

  @Column("datetime2", { name: "create_time", nullable: true })
  createTime: Date | null;

  @Column("datetime2", { name: "update_time", nullable: true })
  updateTime: Date | null;

  @Column("bigint", { name: "create_by", nullable: true })
  createBy: string | null;

  @Column("bigint", { name: "update_by", nullable: true })
  updateBy: string | null;

  @Column("datetime2", { name: "delete_time", nullable: true })
  deleteTime: Date | null;

  @Column("nvarchar", { name: "create_user", nullable: true, length: 255 })
  createUser: string | null;

  @Column("nvarchar", { name: "update_user", nullable: true, length: 255 })
  updateUser: string | null;

  @PrimaryGeneratedColumn({ type: "bigint", name: "id" })
  id: string;
}
